package cn.test.vo.resp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "用户登录响应对象")
public class LoginRespVo {
    /**
     * 用户ID
     * 将Long类型数字进行json格式转化时，转成String格式类型
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键ID", required = true)
    private Long id;

    /**
     * 电话
     */
    @ApiModelProperty(value = "用户的电话号码", required = true)
    private String phone;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户的登录用户名", required = true)
    private String username;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "用户的昵称")
    private String nickName;
}